//
//  YSY_HeroDetail_CollectionViewCell.m
//  GoodManNews
//
//  Created by dllo on 16/1/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "YSY_HeroDetail_CollectionViewCell.h"

@implementation YSY_HeroDetail_CollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)dealloc
{
    [_bg_image release];
    [_menuL release];
    [super dealloc];

}
- (void)createView {
    self.bg_image = [UIImageView new];
    self.bg_image.layer.cornerRadius = 8;
    self.bg_image.layer.masksToBounds = YES;
    self.bg_image.backgroundColor =[UIColor grayColor];
    [self.contentView addSubview:self.bg_image];
    [self.bg_image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
        make.edges.lessThanOrEqualTo(self.contentView);
    }];
    
    self.menuL = [UILabel new];
    self.menuL.backgroundColor = [UIColor clearColor];
    self.menuL.textColor = [UIColor whiteColor];
    self.menuL.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.menuL];
    [self.menuL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.bg_image);
      
    }];
    
    
}
@end
